<template>
<div>
  <h3>{{ msg }}</h3>
  姓名：<input type="text"/><br/>
  密码：<input type="text"/><br/>
  <input type="button" value="登录" @click="login()">
  <input type="button" value="重置">
</div>
</template>

<script>
export default {
  name: "login",
  data(){
    return{
      msg:"用户登录"
    }
  },
  methods:{
    login(){
      this.$router.push({path:'/index'})
    }
  }
}
</script>

<style scoped>

</style>
